<%--
  Created by IntelliJ IDEA.
  User: yang
  Date: 2018/2/9
  Time: 12:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户登陆</title>
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script>
</head>
<body style="padding-top:100px;">
<center>
    <form id="login" method="post">
        <table>
            <tr>
                <td>用户名：</td>
                <td><input type="text" name="username"></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input type="password" name="password"></td>
            </tr>
            <tr>
                <td></td>
                <td style="vertical-align: middle;">
                    <input type="checkbox" name="remenmber"
                    /><span class="info">记住用户</span>
                </td>
            </tr>
            <tr>
                <td></td>
                <td style="padding-top:10px;">
                    <a href="javascript:void(0)" onclick="submitForm()">登陆</a>
                    <%--<input type="submit" value="登陆">--%>
                    <a href="register.html">注册</a>
                </td>
            </tr>
        </table>
    </form>
</center>
</body>
<script type="text/javascript">
    function submitForm(){
        $.post("user/login",$("#login").serialize(), function(){

        });
    }
</script>
</html>
